package com.chen.common;

import java.util.Locale;
import java.util.ResourceBundle;

import javafx.fxml.FXMLLoader;

/**
 * @Description
 * @Author Pengwei
 * @CreatDate 2021/11/15 01:19
 */
public class FX {
    private static ResourceBundle bundle;

    static {
        bundle = ResourceBundle.getBundle("i18n.messages", Locale.getDefault());
    }

    public static FXMLLoader getFXMLLoader(String page) {
        return new FXMLLoader(FX.class.getResource(page), bundle);
    }
}
